<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加用户</title>
<LINK rel="stylesheet" type="text/css" href="../css/mq.css">
<script type="text/javascript">
	function checkPutIn(){
		if(document.getElementById(userName).value == ""){
			alert("请输入用户名");
			return false;
		}
		if(document.getElementById(husband).value == ""){
			alert("请输入新郎名");
			return false;
		}
		if(document.getElementById(wife).value == ""){
			alert("请输入新娘名");
			return false;
		}
		if(document.getElementById(mobile).value == ""){
			alert("请输入联系电话");
			return false;
		}
		if(document.getElementById(province).value == ""){
			alert("请输入省份");
			return false;
		}
		if(document.getElementById(city).value == ""){
			alert("请输入所在市");
			return false;
		}
		else{
			return true;
		}
	}
</script>
</head>

<body>
<div id="write">
<form action="insertUser.do" method="post" >
<h4>添加用户</h4>
<table id="mailInfo" style="border-top:#dddddd solid 1px; border-bottom:#dddddd solid 1px" frame=below rules=rows  bordercolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="4" >
  <tr>
    <td width="85px" class="tdstyle">用户名：</td>
    <td><input name="userName" id="userName" type="text" class="inputstyle-240px" /></td>
  </tr>
    <tr>
    <td class="tdstyle">密码：</td>
    <td><input name="password" id="password" type="password" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td class="tdstyle">确认密码：</td>
    <td><input name="passwordAgain" id="passwordAgain" type="password" class="inputstyle-240px" /></td>
  </tr>
  
  <tr>
    <td class="tdstyle">新郎名：</td>
    <td><input name="husband" id="husband" type="text" class="inputstyle-240px" /></td>
  </tr>
    <tr>
    <td class="tdstyle">新娘名：</td>
    <td><input name="wife" id="wife" type="text" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td class="tdstyle">联系电话：</td>
    <td><input name="mobile" id="mobile" type="text" class="inputstyle-240px" /></td>
  </tr>
  
  <tr>
    <td class="tdstyle">E-mail：</td>
    <td><input name="email" id="email" type="text" class="inputstyle-240px" /></td>
  </tr>
    <tr>
    <td class="tdstyle">所在省：</td>
    <td><input name="province" id="province" type="text" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td class="tdstyle">所在市：</td>
    <td><input name="city" id="city" type="text" class="inputstyle-240px" /></td>
  </tr>
  <tr>
    <td class="tdstyle">备  注：</td>    
  </tr>
  <tr>
 	 <td width="10px" class="tdstyle"></td>
    <td><textarea name="notes" id="notes" class="textarea" style="overflow:auto"><s:property value="notes"/></textarea>
    </td>    
  </tr>
  <!--
  <tr>
    <td class="tdstyle" align="right">场景分类：</td>
    <td> <select name="sc">	
		<s:iterator value="scs">
			<option value='<s:property value="id"/>'>
			<s:property value="scName"/>
			</option>
		</s:iterator>	
	  </select>
	 </td>
  </tr> 
  -->
</table>
		
<div class="text_margin1">
	<input name="发送" type="submit" value=" 确 定 "  class="buttonstyle-2word" onclick = "return checkPutIn();"/>
  	<input name="重置" type="reset"  value=" 重 置 " class="buttonstyle-2word" />
</div>	 
</form>
</div>
</body>
</html>
